import ElementUI from 'element-ui';
import {loadingConfig} from './loadingConfig.js' //全局的一个基本参数配置

var loading = null ;
const loadingShow = () => {
  loading = ElementUI.Loading.service(loadingConfig);
}

const loadingHide = () => {
    loading? loading.close():"";
}

const loadingObj={
  loadingShow,
  loadingHide
}

export default loadingObj